home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / dev / flexcat / src / dmakefile < prev    next >
Encoding:
Makefile  |  1994-05-31  |  3.8 KB  |  140 lines

  1. #   FlexCat:            The flexible catalog generator        V1.3
  2. #   Copyright (C)   1993    Jochen Wiedmann
  3. #
  4. #   This program is free software; you can redistribute it and/or modify
  5. #   it under the terms of the GNU General Public License as published by
  6. #   the Free Software Foundation; either version 2 of the License, or
  7. #   (at your option) any later version.
  8. #
  9. #   This program is distributed in the hope that it will be useful,
  10. #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. #   GNU General Public License for more details.
  13. #
  14. #   You should have received a copy of the GNU General Public License
  15. #   along with this program; if not, write to the Free Software
  16. #   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. #
  18. #   This is the Makefile (DMake 2.1)
  19. #
  20.  
  21. VERSION=1_3
  22.  
  23. CFLAGS=-proto
  24.  
  25. LFLAGS=
  26.  
  27.  
  28. #   The binaries we use
  29. CC=dcc
  30. LN=dcc
  31. TEX=tex
  32. GTEX=gtex
  33. TEXINDEX=TexIndex
  34. RM=Delete quiet
  35. MAKEINFO=MakeInfo
  36. LHA=LhA
  37. CP=Copy
  38. MV=mv
  39.  
  40. #
  41. #   You should not need to change anything below.
  42. #
  43.  
  44. #   Some variables containing the lists of files to process
  45.  
  46. #   Object files to create
  47. OBJ=FlexCat.o FlexCat_cat.o
  48.  
  49. #   Catalogs available
  50. CATALOGS=Deutsch Italiano Français Español
  51.  
  52.  
  53. #   Doc-files
  54. DOC=FlexCat_deutsch.dvi FlexCat_deutsch.guide FlexCat_deutsch.doc \
  55.     FlexCat_english.dvi FlexCat_english.guide FlexCat_english.doc \
  56.     FlexCat_español.dvi FlexCat_español.guide FlexCat_español.doc
  57.  
  58. #   Source descriptions
  59. SD=C_c_V21.sd C_c_V20.sd C_h.sd \
  60.    C++_CatalogF.cc C++_CatalogF.h C++_cc.sd C++_h.sd \
  61.    Oberon_V38.sd Oberon_V39.sd \
  62.    E21b.sd \
  63.    AztecAs_asm.sd AztecAs_i.sd SASasm_a.sd SASasm_i.sd
  64.  
  65. #   Distribution-files
  66. DIST=$(OBJ:*.o:src/%1.c) $(DOC:*:doc/%1) src/FlexCat_cat.h \
  67.      $(CATALOGS:*:Catalogs/%1/FlexCat.catalog) \
  68.      $(DOC:*:doc/%1.info) src/FlexCat_deutsch.texinfo \
  69.      src/FlexCat_english.texinfo $(SD) \
  70.      src/DMakefile COPYING COPYING.info NewCatalog.ct \
  71.      doc.info src.info $(CATALOGS:*:src/%1.ct) src/FlexCat.cd FlexCat
  72.  
  73.  
  74. #   Main targets: all clean binclean dist doc
  75. all: /FlexCat $(CATALOGS:*:/Catalogs/%1/FlexCat.catalog) doc /NewCatalog.ct
  76.  
  77. clean: binclean
  78.     $(RM) $(DOC:*:/doc/%1)
  79.  
  80. binclean:
  81.     $(RM) FlexCat #?.o #?.sym #?.dbg #?.m \
  82.       #?.aux #?.cp #?.cps #?.fn #?.ky #?.log #?.pg #?.toc #?.tp #?.vr
  83.  
  84. dist: all
  85.     cd //
  86.     $(RM) FlexCat$(VERSION).lha
  87.     $(LHA) a -x FlexCat$(VERSION).lha $(DIST:*:FlexCat/%1) FlexCat.info \
  88.         Contents Contents.info
  89.     cd FlexCat/src
  90.  
  91. doc:    $(DOC:*:/doc/%1)
  92.  
  93.  
  94.  
  95. #   doc-Rules
  96. $(DOC:*.guide:/doc/%1.guide): $(DOC:*.guide:%1.texinfo)
  97.     $(MAKEINFO) --amiga-39 --fill-column 76 --output %(left) %(right)
  98.  
  99. $(DOC:*.doc:/doc/%1.doc): $(DOC:*.doc:%1.texinfo)
  100.     $(MAKEINFO) --amiga-39 --fill-column 76 --no-headers --output %(left) \
  101.         %(right)
  102.  
  103. /doc/FlexCat_deutsch.dvi: FlexCat_deutsch.texinfo
  104.     $(GTEX) %(right)
  105.     $(TEXINDEX) %(right:*.texinfo:%1.cp)
  106.     $(GTEX) %(right)
  107.     $(RM) #?.aux #?.cp #?.fn #?.ky #?.log #?.pg #?.toc #?.tp #?.vr #?.cps
  108.     $(MV) %(right:*.texinfo:%1.dvi) %(left)
  109.  
  110. /doc/FlexCat_english.dvi /doc/FlexCat_español.dvi: \
  111.     FlexCat_english.texinfo FlexCat_español.texinfo
  112.     $(TEX) %(right)
  113.     $(TEXINDEX) %(right:*.texinfo:%1.cp)
  114.     $(TEX) %(right)
  115.     $(RM) #?.aux #?.cp #?.fn #?.ky #?.log #?.pg #?.toc #?.tp #?.vr #?.cps
  116.     $(MV) %(right:*.texinfo:%1.dvi) %(left)
  117.  
  118.  
  119. #   source-Rules
  120. /FlexCat: $(OBJ)
  121.     $(LN) $(LFLAGS) -o %(left) %(right:*.o)
  122.  
  123. $(OBJ): $(OBJ:*.o:%1.c)
  124.     $(CC) $(CFLAGS) -c -o %(left) %(right)
  125.  
  126. $(OBJ): FlexCat_cat.h
  127.  
  128. FlexCat_cat.h FlexCat_cat.c: /C_h.sd /C_c_V21.sd
  129.     FlexCat FlexCat.cd %(left)=%(right)
  130.  
  131. FlexCat_cat.h FlexCat_cat.c: FlexCat.cd
  132.  
  133. $(CATALOGS:*:/Catalogs/%1/FlexCat.catalog): FlexCat.cd
  134.  
  135. $(CATALOGS:*:/Catalogs/%1/FlexCat.catalog): $(CATALOGS:*:%1.ct)
  136.     FlexCat FlexCat.cd %(right) CATALOG %(left)
  137.  
  138. /NewCatalog.ct: FlexCat.cd
  139.     FlexCat %(right) NEWCTFILE %(left)
  140.